package com.langfeiyes.pattern.factory.simple;

public class App {

    public static void main(String[] args) {
        //工厂
        HWProductFactory factory = new HWProductFactory();

        //手机
        HWProduct phone = factory.produce("hwphone");
        phone.show();
        //电脑
        HWProduct computer = factory.produce("hwcomputer");
        computer.show();

    }
}
